import {
  createHashRouter,
  type RouteObject,
  RouterProvider,
} from "react-router-dom";

import type { AppRouteObject } from "#/router";
import DashboardLayout from "@/layouts/dashboard";
export default function Router() {
  const asyncRoutes: AppRouteObject = {
    path: "/",
    element: <DashboardLayout />,
  };

  const routes: AppRouteObject[] = [asyncRoutes];
  const router = createHashRouter(routes as unknown as RouteObject[]);
  return <RouterProvider router={router} />;
}
